<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

//Route::get('hello/:name', 'index/hello');
////会员添加功能路由
//Route::post('add', 'Member/addMember');
////会员展示功能路由
//Route::get('list', 'Member/listMember');
////会员修改功能路由
//Route::put('update/:id', 'Member/updateMember');
////会员删除功能路由
//Route::delete('delete/:id', 'Member/deleteMember');
//Route::post('add-member','Member/addMember');
//Route::post('add-one','Member/addMember');//增加一：直接定义参数
//Route::post('add-two','Member/addTwo');//增加二：apipost定义参数
//Route::post('list-one','Member/listOne');//展示一：结果位数组
//Route::post('list-two','Member/listTwo');//展示二：结果位json
//Route::post('update-one','Member/updateOne');//修改一：结
//Route::get('delete-one/:id','Member/deleteOne');//删除一：路由get和delete
//Route::get('info-one','Member/infoOne');//详情一：路由get和delete
//Route::get('/feng/add','Feng/create');//视图层
//Route::any('/feng/register','Feng/registerData');
//
//Route::get('feng/listdata','Feng/listData');
//Route::get('/feng/delete/:id','Feng/deleteData');//删除post delete get都可以
//Route::post('feng/update','Feng/updateData');
//
//
//
//Route::get('/feng/info/:id','Feng/infoData');//详情需要写Aid，删除也需要id


//Route::post('two/create','Two/create');//引入页面
//Route::post('two/add','Two/add');//注册
//Route::get('two/list','Two/list');  //展示用get
//Route::get('two/delete/:id','Two/delete');//网页的是删除********只可以用get
//Route::get('two/info/:id','Two/info');//详情get
//Route::get('two/update','Two/update');//修改get
//Route::post('three/create','Three/create');
//Route::post('three/add','Three/add');
//Route::post('three/logins','Three/logins');
//Route::post('three/login','Three/login');



//Route::post('member/adddata','member/addData');
//Route::post('member/login','member/login');
//Route::get('member/list','member/list');
//Route::get('staff/index','staff/index');
//Route::get('staff/indexone','staff/indexone');
//Route::get('staff/create','staff/create');
//Route::get('staff/delete/:id','staff/delete');
//
//Route::post('/user/create','User/create');
//Route::post('/user/index','User/index');
//Route::post('mem/create','mem/create');
//Route::post('mem/adddata','mem/adddata');
//Route::get('mem/listdata','mem/listinfo');
//Route::get('mem/delete/:id','mem/delete');
//Route::get('mem/logindata','mem/logindata');
//Route::get('mem/login','mem/login');
//Route::post('memb/adddata','Memb/addData');
//Route::post('four/create','four/create');
//Route::post('four/addone','four/addone');
//Route::post('four/listone','four/listone');
Route::post('goods/create','goods/create');//增加页面
Route::post('goods/adddata','goods/adddata');//增加功能
Route::get('goods/listdata','goods/listdata');//展示功能
Route::post('goods/info','goods/info');//编辑功能
Route::get('goods/update/:g_id','goods/update');//编辑功能
Route::post('goods/delete/:g_id','goods/delete');//删除功能


